package com.lagou.sqlSession;

import java.util.List;

public interface SqlSession {
    //查询多个
    public <E> List<E> selectList(String statementid, Object... params) throws Exception;

    //查询单个
    public <T> T selectOne(String statementid, Object... params) throws Exception;

    //更新操作(包括更新、插入、删除)
    public Object update(String statementid, Object... params) throws Exception;

    //删除操作
    //public Object delete(String statementid, Object... params) throws Exception;
    //插入操作
    //public Object insert(String statementid, Object... params) throws Exception;

    //为Dao接口生成代理实现类
    public <T> T getMapper(Class<?> mapperClass);


}
